<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:71:"C:\phpStudy\WWW\shopsum\public/../application/admin\view\sys\login.html";i:1520833899;s:53:"C:\phpStudy\WWW\shopsum\application\public\admin.html";i:1520912952;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登入页面-<?php echo \think\Config::get('title'); ?></title>
    <link rel="stylesheet" href="../../../../public/static/public/boo3/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
    <link rel="stylesheet" href="__PUBLIC__/index/css/sytle.css">
    <script src="__PUBLIC__/public/js/jquery-2.1.4.min.js"></script>
    <script src="__PUBLIC__/public/js/vue.min.js"></script>
    <script src="__PUBLIC__/public/js/jquery.transit.js"></script>
    <script src="__PUBLIC__/public/js/jquery.timers-1.2.js"></script>
    <script src="__PUBLIC__/public/layer-v3.1.1/layer/layer.js"></script>
    <style>
        #container{
            padding: 0 30px;
        }
        nav{
            background-color: #f5f5f5;
            padding: 10px 20px;
            z-index: 99;
            margin-bottom: 15px;
        }
        @media screen and (max-width: 800px) {
            nav{
                display: none;
            }
        }
    </style>
    <script>
        var DINDEX = '/admin/index';
        var DUSER = '/admin/user';
        var DADMIN = '/admin';
        var DJOURNALISM = '/admin/journalism';
        var DCOUNT = '/admin/count';
        //页面
        function yeMian(url,fn = 1,this_json = {title:'信息',area:['400px','450px']}) {

            var index = layer.open($.extend({type:2,content:url,end:function () {
                    if(typeof fn != 'number' ){
                        fn();
                    }
                }},this_json));
        }

        //看图
        function loock_img(url) {
            url = url.data('img');
            if((typeof url) != 'string'){
                layer.msg('没有数据查看',{icon:2});
                return;
            }
            layer.open({
                type:2,
                title:false,
                closeBtn:false,
                area:['100%','100%'],
                content:"<?php echo url('loock/index',['on'=>'true']); ?>?url="+url
            })
        }
    </script>
    

<link rel="stylesheet" href="__PUBLIC__/admin/css/sys.login.css">
<!--动画-->
<script type='text/javascript' src='__PUBLIC__/public/background/jquery.particleground.min.js'></script>
<script type='text/javascript' src='__PUBLIC__/public/background/demo.js'></script>


</head>
<body>

<nav>
       <small><i class="fa fa-institution"></i></small> 首页 > <?php echo \think\Config::get('this_user_name'); if(\think\Request::instance()->param('on') == 'true'): ?>
       <a href="javascript:;" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name));"  title="关闭当前页面" class="btn btn-xs btn-default fa-pull-right " style="margin-left: 10px"><i class="fa fa-close"></i></a>
        <?php endif; ?>
    <a href="javascript:location.reload();" title="刷新" class="btn btn-xs btn-success fa-pull-right"><i class="fa fa-refresh"></i></a>
</nav>

<div class="container-fluid">

    <div id="particles"></div>
    <div class="form">
        <h4 class="text-center title"><strong style="font-size: 20px;"><?php echo \think\Config::get('title'); ?></strong></h4>
        <form action="<?php echo url('sys/is'); ?>" method="post" id="form">
            <div class="form-group input-group bg-label">
                <label class="input-group-addon">&nbsp;&nbsp;&nbsp;<?php echo lang('账号'); ?></label>
                <input type="text" name="account" class="form-control" datatype="s">
            </div>
            <div class="form-group input-group bg-label">
                <label class="input-group-addon">&nbsp;&nbsp;&nbsp;<?php echo lang('密码'); ?></label>
                <input type="password" name="password" class="form-control" datatype="s">
            </div>
            <div class="form-group input-group bg-label validform-error">
                <label class="input-group-addon"><?php echo lang('验证码'); ?></label>
                <input type="text" name="validate" class="form-control" datatype="s5-5" errormsg=" " nullmsg=" " sucmsg=" ">
                <label class="input-group-addon" style="padding: 0;">
                    <img src="<?php echo captcha_src(); ?>" alt="" width="143" onclick="$(this).attr('src',$(this).attr('src')+'#'+1)">
                </label>
            </div>
            <div class="form-group text-center">
               <button class="btn btn-info"><?php echo lang('立即登入'); ?></button>
            </div>
        </form>
    </div>
</div>


</body>
</html>

<link rel="stylesheet" href="__PUBLIC__\public\validform\style.css">
<script src="__PUBLIC__/public/validform/Validform_v5.3.2_min.js"></script>
<script>
    $(function () {
        $('#form').Validform({
            tiptype:4,
            ajaxPost:true,
            beforeSubmit:function () {
                var index = layer.load(1)
            },
            callback:function (da) {
                layer.closeAll();
                if(da == 1){
                    location.href="<?php echo url('index/index'); ?>";
                }else{
                    $('.validform-error img').click();
                    layer.msg(da,{icon:2});
                }
            }
        });
    });

</script>
